livepatch: use proper rc variable in livepatch_do_action()
authorPawel Wieczorkiewicz <wipawel@amazon.de>
Mon, 6 Jan 2020 12:56:23 +0000 (12:56 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 6 Jan 2020 17:22:51 +0000 (17:22 +0000)
commit0dd92688080202adcc43dcb3486d4143110a66d5
treec8fd5502e1ed2fb2a5c6391545a4199bce025054
parent18dca1410d4120cb276028e400efa045c5c8a972
livepatch: use proper rc variable in livepatch_do_action()

Fix c&p bug in the livepatch_do_action() code of
LIVEPATCH_ACTION_REPLACE case.
The correct variable handling return code of revert action is
other->rc in this case.

Coverity-ID: 1457467
Fixes: 6047104c3c ("livepatch: Add per-function applied/reverted state tracking marker")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Pawel Wieczorkiewicz <wipawel@amazon.de>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/livepatch.c